package com.pactera.madp.cp.api.entity.wm;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pactera.madp.cp.api.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@TableName("cp_work_message_index")
@ApiModel(value = "会话内容存档-信息检索")
@EqualsAndHashCode(callSuper = false)
public class WorkMsgIndexEntity  extends BaseEntity<WorkMsgIndexEntity> {

    @ApiModelProperty(value = "企业 id")
    @TableId(type = IdType.AUTO)
    private Integer corpId;

    @ApiModelProperty(value = "接收方id")
    private Integer toId;

    @ApiModelProperty(value = "接收方类型 0员工 1外部联系人 2群")
    private Integer toType;

    @ApiModelProperty(value = "发送方id(员工id)")
    private Integer fromId;

    @ApiModelProperty(value = "标识，默认为空")
    private String flag;

}